package demo;

import demo.impl.AliStrategy;
import demo.impl.WechatStrategy;

public class Client {
    public static void main(String[] args) {
        PaymentContext paymentContext = new PaymentContext(new AliStrategy());
        paymentContext.executePayment(30.578);
        paymentContext.setStrategy(new WechatStrategy());
        paymentContext.executePayment(30.578);
    }
}
